﻿using DevWeb.Biztalk.DeploymentSettings.Data.CodeFirst;
using DevWeb.Biztalk.DeploymentSettings.Data.CodeFirst.Context;
using Microsoft.Practices.Unity;
using System.Data.Entity;
using System.Data.Entity.Infrastructure;
using System.Data.Entity.Validation;


namespace DevWeb.Biztalk.DeploymentSettings.DeploymentService
{
    public class ContainerConfigurator
    {
        public void Configure(IUnityContainer container)
        {
            //configure the repositories
            container.RegisterType<DbContext, DeploymentSettingsContext>();
            //container.RegisterType<IRepository<Integration>, IntegrationRepository>();
            //container.RegisterType<IRepository<IntegrationVersion>, IntegrationVersionRepository>();
            //container.RegisterType<IRepository<IntegrationVersionSettings>, IntegrationVersionSettingsRepository>();

            //container.RegisterType<IRepository<DefaultSettings>, DefaultSettingsRepository>();
            //container.RegisterType<IRepository<DeploymentLog>, DeploymentLogRepository>();
        }
    }
}